package com.study.suanfa;

import java.util.Arrays;

/**
 * @description: AlphOrder  26个字母全排列,不重复
 * @date: 2020/11/10 19:48
 * @author: hcm
 * @version: 1.0
 */
public class AlphOrder {
    public static void main(String[] args) {
        String data = "abcdefghijklmnopqrstuvwxyz";
        String testData = "abc";
        gameBegin(testData);
    }

    private static void  gameBegin(String data) {
        char[] chars = data.toCharArray();
        System.out.println(Arrays.toString(chars));

        for(int i = 0 ; i<chars.length;i++){
            for(int j = 0;j<chars.length;j++){
                for(int k=0 ; k<chars.length;k++){
                    if(i!=j&&i!=k&&j!=k)
                    System.out.println("-》"+chars[i]+""+chars[j]+""+chars[k]);
                }
            }
        }
    }

}
